package cn.fch.gotrip.service;

import cn.fch.gotrip.entity.TravelOrder;
import com.github.pagehelper.PageInfo;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-23 17:17
 **/
public interface TravelOrderService {

    boolean creatTravelOrder(TravelOrder travelOrder);

    boolean deleteTravelOrder(String id);

    PageInfo<TravelOrder>queryAllTravelOrdersByType(Integer type, Integer pageNum, Integer pageSize);

    PageInfo<TravelOrder> queryByCreatAndType(Integer type, Integer pageNum, Integer pageSize, Long start, Long end);

    PageInfo<TravelOrder> searchOrderById(String id, Integer pageNum, Integer pageSize);

    TravelOrder queryOrderById(String id);
}
